package com.house.keeper.entity.bean;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zjj
 * @date 2022-05-12
 */
@Data
public class MenuBean {
    //菜单编号
    private int id;
    //父节点
    private int pid;
    //标题
    private String title;
    //菜单类型：0目录，1菜单，2按钮
    private Integer type;
    //图标
    private String icon;
    //跳转路径
    private String href;
    //子菜单
    List<MenuBean> children = new ArrayList<>();

    public MenuBean(int id, int pid, String title, Integer type, String icon, String href, List<MenuBean> children) {
        this.id = id;
        this.pid = pid;
        this.title = title;
        this.type = type;
        this.icon = icon;
        this.href = href;
        this.children = children;
    }
}
